﻿<Window x:Class="YoutubeVideoManager.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Width="800" Height="480" Loaded="Window_Loaded" xmlns:my="clr-namespace:YoutubeVideoManager" Closing="Window_Closing">
<Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="64" />
            <ColumnDefinition Width="96" />
            <ColumnDefinition Width="404*" />
            <ColumnDefinition Width="36" />
            <ColumnDefinition Width="160" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="64" />
            <RowDefinition Height="25" />
            <RowDefinition Height="297*" />
            <RowDefinition Height="50" />
        </Grid.RowDefinitions>
        <Image Name="imgLogo" Source="Images/Logo.png" Stretch="Fill" />
        <my:PlaylistView Grid.Row="2" x:Name="lvPlaylists" Grid.ColumnSpan="2" SelectionChanged="lvPlaylists_SelectionChanged" DownloadCompleted="lvPlaylists_DownloadCompleted" PlaylistDoubleClick="lvPlaylists_PlaylistDoubleClick" />
        <my:VideosView Grid.Column="2" Grid.Row="1" x:Name="lvVideos" Grid.ColumnSpan="2" DownloadCompleted="lvVideos_DownloadCompleted" VideoDoubleClick="lvVideos_VideoDoubleClick" Grid.RowSpan="2" />
        <TextBox Name="txtQuery" Grid.Column="2" Margin="15" Height="25" />
        <Button Name="cmdSearch" Grid.Column="3" Height="32" Background="Transparent" Width="32" Click="cmdSearch_Click" >
            <Image Source="Images/Search.png" />
        </Button>
        <my:VlcControl Grid.Column="2" Grid.Row="3" x:Name="vlcControl" />
        <my:PlaylistManager AllowDrop="True" Grid.Column="4" Grid.Row="1" x:Name="playlistManager" Drop="playlistManager_Drop" Grid.RowSpan="2" />
        <my:SubscriptionManager Grid.Row="1" x:Name="subscriptionManager" Grid.ColumnSpan="2"  SelectionChanged="subscriptionManager_SelectionChanged"/>
        <CheckBox Content="Impedisci HD" Grid.Row="3" Height="16" HorizontalAlignment="Left" Margin="12,6,0,0" Name="chkPreventHD" VerticalAlignment="Top" Grid.ColumnSpan="2" Checked="chkPreventHD_Checked" />
    </Grid>
</Window>
